package com.heima.user.feign;

import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.ApAuthor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "leadnews-article",path = "/api/v1/author")
public interface ArticleFeignClient {

    @PutMapping
    ResponseResult<ApAuthor> saveAuthor(@RequestBody ApAuthor author);
}
